Skip to content

Pin that an event's own tags are not capped - #44

Merged
dmccoystephenson merged 1 commit into
mainfrom
feat/test-uncapped-own-tags
Nov 15, 2026
Merged

dmccoystephenson merged 1 commit into
mainfrom
feat/test-uncapped-own-tags

Conversation

@dmccoystephenson

Copy link
Copy Markdown
Member

Summary

  • A test is added pinning that an event's own tags are not capped: an event with MAX_TAGS + 8 (40) tags of its own is delivered with every one of them plus version, and without install.
  • The README ("an event's own tags are not capped", README.md:162-163) and the MAX_TAGS TSDoc already promise this, but only the 31/30 boundary of the install cap was tested (never pushes an event past the tag cap). A change that capped all tags at 32 would have passed the suite.
  • Stage B (unit-test expansion) cycle. No production code, docs, or version changed.

Test plan

  • CI test job (npm ci, npm run typecheck, npm test on Node 22) green on the PR head, with the test count one higher than on main.
  • Local run: UNVERIFIED -- Node is not available in the session environment, so the CI check on the exact head SHA is the anchor.

Issues

No tracking issue -- gap found during triage. Open issues #36 and #37 were skipped: both need an owner decision and a coordinated change with trace-client-python / trace-client-java (wire format and opt-out semantics), as stated in their bodies.

Cross-client and changelog

  • No cross-client-visible behavior changed; trace-client-python / trace-client-java need no matching change.
  • No CHANGELOG.md entry: the change is test-only and nothing user-visible changed.

This PR description was drafted during a Gardener session (https://github.com/Stephenson-Software/gardener).

🤖 Generated with Claude Code


drafted by Claude on behalf of Daniel Stephenson

The README and the MAX_TAGS TSDoc say the cap only holds back the install
tag and that an event's own tags are not capped, but only the 31/30 boundary
was tested. The new test sends 40 own tags and checks that all of them and
version arrive, without install. No behavior changed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@dmccoystephenson

Copy link
Copy Markdown
Member Author

Self-review rubric (head of feat/test-uncapped-own-tags, CI run 43691343316):

  • Scope: PASS -- the diff touches only tests/trace-client.test.ts (+14 lines, one new it in the installation ID block, next to the existing tag-cap test).
  • Tests-new: PASS (not applicable) -- no public member was added.
  • Tests-fix: not applicable -- no production code changed; the test characterizes current behavior.
  • Sibling structure: PASS -- the new test reuses the block's tagsOf helper, the installId: "mine" setup, and the MAX_TAGS-relative counts of never pushes an event past the tag cap, and it closes its client.
  • Sibling renames: PASS (not applicable) -- nothing renamed.
  • Docs: PASS -- README.md:161-163 and the MAX_TAGS TSDoc (trace-client.ts:168-172) already state that an event's own tags are not capped and that version counts toward the cap; the test asserts exactly that, so no doc needed to change.
  • Issue resolution: PASS (not applicable) -- no Closes; the gap was found during triage.
  • CI: PASS -- the test job is green on the head SHA; the log shows # tests 84 / # pass 84 / # fail 0 against 83 on the last main run, and ok 12 - sends every one of an event's own tags past the cap, plus version, without the install tag.
  • Zero-dependency: PASS -- no new imports; trace-client.ts and package.json untouched.
  • Edge gate intact: PASS -- tsconfig.json untouched; typecheck green in CI.
  • Never-throws / no console / export surface / version agreement: PASS (not applicable) -- trace-client.ts is unchanged.
  • Changelog: PASS -- a test-only change has nothing user-visible to record.
  • Cross-client parity noted: PASS -- the PR body states that no cross-client-visible behavior changed.

Local anchor: UNVERIFIED -- Node is not installed in the session environment, so the CI check on the exact head SHA served as the anchor.

tests/trace-client.test.ts new test -- observation: the count assertion (MAX_TAGS + 9) relies on the 40 own tag keys not including version or install; the t<i> names guarantee that.

This comment was drafted during a Gardener session (https://github.com/Stephenson-Software/gardener).


drafted by Claude on behalf of Daniel Stephenson

@dmccoystephenson
dmccoystephenson merged commit 7ac5cd6 into main Nov 15, 2026
1 check passed
@dmccoystephenson
dmccoystephenson deleted the feat/test-uncapped-own-tags branch November 15, 2026 07:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant